package com.jiantong.work.service;

import com.jiantong.work.model.DisinfectReport;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by maowenjie on 2017/3/29.
 */
public interface DisinfectReportWriteService{

    /**
     * 防疫中心  消毒记录  创建新单据
     * @param disinfectReport 单据对象
     * @return Map<String , Object>
     */
    Response<Map<String,Object>> create(DisinfectReport disinfectReport,Integer toStatus);

    /**
     * 防疫中心  消毒记录 更新单据
     * @param disinfectReport 单据对象
     * @return Map<String , Object>
     */
    Response<Map<String,Object>>update(DisinfectReport disinfectReport,Integer toStatus);

    Boolean update(DisinfectReport disinfectReport);
}
